var count = document.getElementById("thelist").getElementsByTagName("img").length;
var img_width=0;
img_width=document.getElementById("banner").clientWidth;
//img_width=document.body.clientWidth;
for (i = 0; i < count; i++) {
    document.getElementById("thelist").getElementsByTagName("img").item(i).style.cssText = " width:" + img_width + "px";
}
document.getElementById("scroller").style.cssText = " width:" + img_width * count + "px";
setInterval(function() {
    myScroll.scrollToPage('next', 0, 400, count);
}, 3500);
window.onresize = function() {
    for (i = 0; i < count; i++) {
        document.getElementById("thelist").getElementsByTagName("img").item(i).style.cssText = " width:" + img_width + "px";
    }
    document.getElementById("scroller").style.cssText = " width:" + img_width * count + "px";
};

// var count = $("#CenterScroller").children().length;
// var div_width=682;
// $("#CenterScroller").children().attr("style","width:"+div_width+"px");
// $("#CenterWrapper").attr("style","overflow: hidden;width:"+div_width+"px");
// $("#CenterScroller").attr("style","width:"+div_width*count+"px");
// setInterval(function() {
//   myCenterScroll.scrollToPage('next', 0, 400, count);
// }, 3400); 

    